<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:cfid-fgi="http://eid.csrc.gov.cn/cn/fid/rpt/fgi/2007-09-01"
                xmlns:cfid-gcd="http://eid.csrc.gov.cn/cn/fid/rpt/gcd/2007-09-01">

    <xsl:output method="html" encoding="UTF-8" indent="yes"/>
    
    <xsl:template match="/">
        <html>
            <head>
                <meta charset="UTF-8"/>
                <title>基金报告</title>
                <!-- 调试信息开始 -->
                <xsl:comment>
                    ===== 调试信息 =====
                    根元素: <xsl:value-of select="name(/*)"/>
                    根元素属性:
                    <xsl:for-each select="/*/@*">
                        <xsl:value-of select="name()"/>="<xsl:value-of select="."/>"
                    </xsl:for-each>
                    
                    元素信息:
                    <xsl:for-each select="//*">
                        元素名: <xsl:value-of select="name()"/>
                        本地名: <xsl:value-of select="local-name()"/>
                        命名空间: <xsl:value-of select="namespace-uri()"/>
                        值: <xsl:value-of select="."/>
                    </xsl:for-each>
                </xsl:comment>
                <!-- 调试信息结束 -->
                <style>
                    body {
                        font-family: Arial, sans-serif;
                        margin: 20px;
                        line-height: 1.6;
                    }
                    .container {
                        max-width: 800px;
                        margin: 0 auto;
                        padding: 20px;
                        border: 1px solid #ddd;
                        border-radius: 5px;
                    }
                    .header {
                        background-color: #f5f5f5;
                        padding: 15px;
                        margin-bottom: 20px;
                        border-radius: 5px;
                    }
                    .content {
                        margin-bottom: 20px;
                    }
                    .item {
                        margin-bottom: 10px;
                        padding: 10px;
                        background-color: #fff;
                        border-left: 4px solid #007bff;
                    }
                    .label {
                        font-weight: bold;
                        color: #333;
                    }
                    .value {
                        color: #666;
                    }
                </style>
            </head>
            <body>
                <div class="container">
                    <div class="header">
                        <h1>基金产品信息</h1>
                    </div>
                    <div class="content">
                        <div class="item">
                            <span class="label">基金名称：</span>
                            <span class="value">
                                <xsl:value-of select="//*[local-name()='JiJinMingCheng']"/>
                            </span>
                        </div>
                        <div class="item">
                            <span class="label">公告名称：</span>
                            <span class="value">
                                <xsl:value-of select="//*[local-name()='GongGaoMingCheng']"/>
                            </span>
                        </div>
                        <div class="item">
                            <span class="label">公告日期：</span>
                            <span class="value">
                                <xsl:value-of select="//*[local-name()='GongGaoRiQi']"/>
                            </span>
                        </div>
                        <div class="item">
                            <span class="label">公告内容：</span>
                            <span class="value">
                                <xsl:value-of select="//*[local-name()='GongGaoNeiRong']"/>
                            </span>
                        </div>
                    </div>
                </div>
            </body>
        </html>
    </xsl:template>
</xsl:stylesheet> 